package com.nifostasky.service;

import com.nifostasky.entity.SysUser;
import com.nifostasky.entity.SysUserToken;
import org.springframework.stereotype.Service;

import java.util.Set;

public interface ShiroService {

    /**
     * 获取用户权限列表
     */
    Set<String> getUserPermissions(long userId);

    SysUserToken queryByToken(String token);

    /**
     * 根据用户ID，查询用户
     * @param userId
     */
    SysUser queryUser(Long userId);
}
